package grape.composite.rest.subway.mapper;

import grape.composite.rest.subway.form.SubwayListForm;
import grape.composite.service.subway.po.Subway;
import grape.common.rest.mvc.WebMapper;
import org.mapstruct.Mapper;
import grape.composite.rest.subway.form.SubwayCreateForm;
import grape.composite.rest.subway.form.SubwayUpdateForm;
import grape.composite.rest.subway.form.SubwayListPageForm;
import grape.composite.rest.subway.vo.SubwayVo;
import org.mapstruct.ReportingPolicy;
/**
 * <p>
 * 地铁线路表 前端领域模型映射
 * </p>
 *
 * @author yangwei
 * @since 2020-09-10
 */
@Mapper(componentModel = "spring",unmappedTargetPolicy = ReportingPolicy.IGNORE)
public interface SubwayWebMapper extends WebMapper<SubwayVo, Subway> {

    Subway formToPo(SubwayCreateForm f);
    Subway formToPo(SubwayUpdateForm f);
    Subway formToPo(SubwayListPageForm f);
    Subway formToPo(SubwayListForm f);
}
